package com.hq.fxh.No2_BBS.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.hq.fxh.No2_BBS.Fragment.BBS_KanTie_Fragment;
import com.hq.fxh.No2_BBS.Fragment.BBS_Plate_Fragment;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/8/17
 * @Email xlwenhao1858@sina.com
 */


public class Padapter_BBS extends FragmentStatePagerAdapter {
    public Padapter_BBS(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        if(position==0){
           return BBS_KanTie_Fragment.newInstance();
        }else {
            return BBS_Plate_Fragment.newInstance();
        }
     }

    @Override
    public int getCount() {
        return 2;
    }
}
